<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="<?=$this->url()?>" method="post">
        <input type="hidden" name="pageSize" value="<?=$page['size']?>">
        <input type="hidden" name="pageCurrent" value="<?=$page['page']?>">
        <input type="hidden" name="orderField" value="<?=$page['order']?>">
        <input type="hidden" name="orderDirection" value="<?=$page['by']?>">
        <div class="bjui-searchBar">
        </div>
        <div class="bjui-moreSearch">
        </div>
        <a href="<?=$this->url('add')?>" class = "btn btn-blue" data-icon="plus" data-toggle="dialog" data-id="form" data-title="添加管理员" data-width="800">添加</a>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
            <tr>
                <?php foreach($fields as $key =>$field) :?>
                <th <?php if (!isset($field['sort']) || $field['sort']) :?>data-order-field="<?=$key?>" <?php endif;?>>
                    <?=$this->e($field['title'])?>
                </th>
                <?php endforeach; ?>
                <!--<th data-order-direction="asc" data-order-field="created_at">创建时间</th> -->
            </tr>
        </thead>
        <tbody>
            <?php foreach($data as $row) :?>
            <tr data-id="<?=$this->e($rs['serials'])?>">
                <?php foreach($row as $k =>$rs) :?>
                <td><?=(substr($k,0,1) !=='#')?$this->e($rs):$rs?></td>
                <?php endforeach; ?>
                <td>
                </td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="10">10</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="120">120</option>
                <option value="150">150</option>
            </select>
        </div>
        <span>&nbsp;条，共 <?=$this->e($page['total'])?> 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="<?=$this->e($page['total'])?>" data-page-size="<?=$this->e($page['size'])?>" data-page-current="<?=$this->e($page['page'])?>">
    </div>
</div>
